import request from '@/utils/request'

export function getCourseList(data) {
  return request({
    url: '/course/admin/list',
    method: 'post',
    data
  })
}
export function getCourseListAll(data) {
  return request({
    url: '/course/admin/listAll',
    method: 'get',
    data
  })
}

export function getCourseDetail(params) {
  return request({
    url: '/course/admin/getDetail',
    method: 'get',
    params
  })
}

export function updateCourseDetail(data) {
  return request({
    url: '/course/admin/update',
    method: 'post',
    data
  })
}

export function addCourseDetail(data) {
  return request({
    url: '/course/admin/create',
    method: 'post',
    data
  })
}
export function delCourseDetail(params) {
  return request({
    url: '/course/admin/del',
    method: 'get',
    params
  })
}

export function getCourseHistoryList(data) {
  return request({
    url: '/course/admin/historyList',
    method: 'post',
    data
  })
}
